import request from '@/utils/request'

//删除DELETE /admin/product/baseTrademark/remove/{id}
export function removeTrademarkApi(id) {
  return request({
    url: `/admin/product/baseTrademark/remove/${id}`,
    method: 'delete',
  })
}

//更新PUT /admin/product/baseTrademark/update
export function upDateTrademarkApi(data) {
  return request({
    url: `/admin/product/baseTrademark/update`,
    method: 'put',
    data
  })
}
//添加
export function addTrademarkListApi(data) {
  return request({
    url: `/admin/product/baseTrademark/save`,
    method: 'post',
    data
  })
}
//获取品牌数据
export function getTrademarkListApi(page,limit) {
  return request({
    url: `/admin/product/baseTrademark/${page}/${limit}`,
    method: 'get'
  })
}